import request from '@/utils/request'

// 查询加分规则列表
export function listAspect(query) {
  return request({
    url: '/system/aspect/list',
    method: 'get',
    params: query
  })
}

// 查询加分规则详细
export function getAspect(id) {
  return request({
    url: '/system/aspect/' + id,
    method: 'get'
  })
}

// 新增加分规则
export function addAspect(data) {
  return request({
    url: '/system/aspect',
    method: 'post',
    data: data
  })
}

// 修改加分规则
export function updateAspect(data) {
  return request({
    url: '/system/aspect/update',
    method: 'post',
    data: data
  })
}

// 删除加分规则
export function delAspect(id) {
  return request({
    url: '/system/aspect/delete/' + id,
    method: 'post'
  })
}
